/*
 * @Author: QinJiu
 * @Date: 2022-07-20 09:09:50
 * @LastEditors: Qinjiu
 * @LastEditTime: 2023-01-06 17:29:54
 * @Description:
 */
import Vue from "vue";
import "@/styles/index.css";
import "@/styles/index.less";
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
import _ from "lodash";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import { checkDesktopNotifyPermission } from "@/utils/desktop-notify";
import "@/assets/svg";
import * as echarts from "echarts";
import BaseEcharts from "@/components/BaseEcharts.vue";
import "@/assets/iconfont"; // iconfont

// 开发环境
// if (process.env.NODE_ENV === 'development') {
// mock数据
import "../mock/index";
// }

import "@/router/permission"; // 权限控制

Vue.use(ElementUI);

// Vue原型上挂载lodash工具库
Vue.prototype._ = _;
Vue.prototype.$echarts = echarts;

Vue.component("BaseEcharts", BaseEcharts);

Vue.config.productionTip = false;

// 检查桌面通知权限
checkDesktopNotifyPermission();

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
